<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__CSS__/layui.css">
    <link rel="stylesheet" href="__CSS__/view.css"/>
    <link rel="icon" href="/favicon.ico">
    <title>代理后台--提现记录</title>
    <style type="text/css">
        .pagination {
            display: inline-block;
            padding-left: 0;
            border-radius: 4px;
            float: right;
            margin-right: 1rem;
        }

        .pagination li {
            display: inline;
        }

        .pagination li a, .pagination li span {
            position: relative;
            float: left;
            padding: 4px 10px;
            line-height: 1.5;
            color: #393D49;
            background: #fff;
            margin: 0 0 0 5px;
            border: 1px solid #eee
        }

        .pagination li a:hover {
            color: #fff;
            background: #1E9FFF
        }

        .pagination .active span {
            background: #1E9FFF;
            color: #fff;
            border-radius: 30%;
        }

        .pagination .disabled {
            display: none
        }
    </style>
</head>
<body class="layui-view-body">
<div class="layui-content">
    <div class="layui-page-header">
        <div class="pagewrap">
                <span class="layui-breadcrumb">
                  <a href="">首页</a>
                  <a href="">分润管理</a>
                  <a href="">下级分润报表</a>
                  <a><cite>分润明细</cite></a>
                </span>
        </div>
    </div>
    <div class="layui-row layui-col-space20">
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-body chart-card">
                    <div class="chart-header">
                        <div class="metawrap">
                            <div class="meta">
                                <b>今日总金额</b>
                            </div>
                            <div class="total">{$todymoney}</div>
                        </div>
                    </div>
                    <div class="chart-body">
                        <div class="contentwrap">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-body chart-card">
                    <div class="chart-header">
                        <div class="metawrap">
                            <div class="meta">
                                <b>今日分润金额</b>
                            </div>
                            <div class="total">{$todyprofit}</div>
                        </div>
                    </div>
                    <div class="chart-body">
                        <div class="contentwrap">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-body chart-card">
                    <div class="chart-header">
                        <div class="metawrap">
                            <div class="meta">
                                <b>总交易额</b>
                            </div>
                            <div class="total">{$sunmoney}</div>
                        </div>
                    </div>
                    <div class="chart-body">
                        <div class="contentwrap">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-body chart-card">
                    <div class="chart-header">
                        <div class="metawrap">
                            <div class="meta">
                                <b>总分润</b>
                            </div>
                            <div class="total">{$sunprofit}</div>
                        </div>
                    </div>
                    <div class="chart-body">
                        <div class="contentwrap">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-card">
            <div class="layui-card-body">
                <div class="form-box">
                    <div class="layui-form layui-form-item">
                        <div class="layui-inline">
                            <form>
                                <div class="layui-input-inline" style="width: 10rem;">
                                    <input type="text" placeholder="订单号" name="profit_form_no"
                                           value="{$getdata['profit_form_no']}" class="layui-input" id="" lay-key="92">
                                </div>
                                <input type="hidden" name="pid" value="{$getdata['pid']}"/>
                                <div class="layui-inline">
                                    <label class="layui-form-label">分润时间</label>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="starttime"
                                               value="{if isset($getdata['starttime'])}{$getdata['starttime']}{/if}"
                                               class="layui-input" id="starttime" placeholder="开始日期" lay-key="92">
                                    </div>
                                    <div class="layui-form-mid">
                                        -
                                    </div>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="endtime"
                                               value="{if isset($getdata['endtime'])}{$getdata['endtime']}{/if}"
                                               class="layui-input" id="endtime" placeholder="结束日期" lay-key="93">
                                    </div>
                                    <div class="layui-inline">

                                        <div class="layui-form-mid">分润类型:</div>
                                        <div class="layui-input-inline" style="width: 100px;">
                                            <select name="benefit_type" id='benefit_type'>
                                                <option value="">请选择</option>
                                                <option value="1" {if isset($getdata[
                                                'benefit_type'])}{$getdata['benefit_type']=='1'?
                                                'selected':''}{/if}>申请中</option>
                                                <option value="2" {if isset($getdata[
                                                'benefit_type'])}{$getdata['benefit_type']=='2'?
                                                'selected':''}{/if}>已提现</option>
                                                <option value="3" {if isset($getdata[
                                                'benefit_type'])}{$getdata['benefit_type']=='3'?
                                                'selected':''}{/if}>已拒绝</option>
                                            </select>
                                        </div>

                                    </div>

                                    <button class="layui-btn layui-btn-blue">查询</button>
                                    <a onclick="returns()" class="layui-btn layui-btn-primary">返回</a>
                            </form>
                        </div>
                    </div>
                    <table id="demo">
                        <table class="layui-table">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>姓名</th>
                                <th>订单</th>
                                <th>金额(元)</th>
                                <th>分润(元)</th>
                                <th>用户费率</th>
                                <th>类型</th>
                                <th>状态</th>
                                <th>代理</th>
                                <th>时间</th>
                            </tr>
                            </thead>
                            {volist name="list" id="vo"}
                            <tbody>
                            <tr>
                                <td>{$vo.profit_id}</td>
                                <td>{$vo.profit_uid}</td>
                                <td>{$vo.profit_form_no}</td>
                                <td>{$vo.profit_amount}</td>
                                <td>{$vo.profit_money}</td>
                                <td>{$vo.profit_user_rate}</td>
                                <td>{$vo.profit_type}</td>
                                <td>{$vo.profit_pay}</td>
                                <td>{$vo.profit_agent_id}</td>
                                <td>{$vo.profit_time}</td>
                            </tr>
                            </tbody>
                            {/volist}
                        </table>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
{$list->render()|raw}
<script src="__JS__/layui.all.js"></script>

<script>
    layui.use('laydate', function () {

        var laydate = layui.laydate;
        laydate.render({
            elem: '#starttime' //指定元素
        });

        laydate.render({
            elem: '#endtime' //指定元素
        });

    });

    // 返回
    function returns() {
        window.location.href = "{:Url('member/Profit/underlevelrun')}";
    }

</script>
</body>
</html>